package com.jhgsys.internal.formDesign.service;

import com.jhgsys.internal.formDesign.dto.FormDesignDto;
import com.jhgsys.internal.formDesign.entity.FormDesign;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.formDesign.entity.FormFill;

import java.util.List;

/**
 * 表单设计 Service接口
 *
 * @author fenghaijun
 * @date 2024-08-28 10:54:00
 */
public interface IFormDesignService extends IService<FormDesign> {
    /**
     * 查询（分页）
     * @author fenghaijun
     * @date 2024-08-28 10:54:00
     * @param request QueryRequest
     * @param formDesignDto formDesign
     * @return IPage<FormDesign>
     */
    IPage<FormDesignDto> findFormDesignPage(QueryRequest request, FormDesignDto formDesignDto);

    /**
     * 查询（分页）
     * @author fenghaijun
     * @date 2024-08-28 10:54:00
     * @param request QueryRequest
     * @param formDesignDto formDesign
     * @return IPage<FormDesignDto>
     */
    IPage<FormDesignDto> findFormFillPage(QueryRequest request, FormDesignDto formDesignDto);

    /**
     * 查询（所有）
     * @author fenghaijun
     * @date 2024-08-28 10:54:00
     * @param formDesign formDesign
     * @return List<FormDesign>
     */
    List<FormDesign> findFormDesignList(FormDesign formDesign);

    /**
    * 根据ID查询
    * @author fenghaijun
    * @date 2024-08-28 10:54:00
    * @param id
    * @return FormDesign
    */
    FormDesignDto findFormDesignById(String id);

    /**
     * 新增
     * @author fenghaijun
     * @date 2024-08-28 10:54:00
     * @param formDesignDto formDesign
     */
    void createFormDesign(FormDesignDto formDesignDto);

    /**
     * 修改
     * @author fenghaijun
     * @date 2024-08-28 10:54:00
     * @param formDesignDto formDesign
     */
    void updateFormDesign(FormDesignDto formDesignDto);

    /**
     * 逻辑删除
     * @author fenghaijun
     * @date 2024-08-28 10:54:00
     * @param formDesign formDesign
     * @param formDesignIds formDesignIds
     */
    void deleteFormDesign(FormDesign formDesign,String formDesignIds);

    /**
    * 物理删除
    * @author fenghaijun
    * @date 2024-08-28 10:54:00
    * @param formDesignIds formDesignIds
    */
    void physicallyDeleteFormDesign(String formDesignIds);
}
